{extends file="../home.html"}

{block name="title"}{$head_title}{/block}
	
{block name="css"}
{/block}

{block name="content"}
<!--s主内容-->
<section class="content-wrapper">
  <div class="content-container container">
  	<!-- s流程状态 -->
  	<div class="cartWrap pdt20">
		<div class="cart-status clearfix">
			<div class="cs-logo fl"></div>
			<div class="cs-bar cs-bar-st1 fr">
				<div class="cs-bar-bg"></div>
				<div class="cs-bar-txt">
					<span class="cs-bar-txt-step1" style="color:#ff7f00;">1.我的购物车</span>
					<span class="cs-bar-txt-step2">2.填写核对订单信息</span>
					<span class="cs-bar-txt-step3">3.成功提交订单</span>
				</div>
			</div>
		</div>
	</div>
  	<!-- e流程状态 -->
  	<!-- s购物车内容 -->
  	<form method="POST" action="" id="confirm_order_form">
	<table class="cart-itemsTable mgt10">
		<colgroup>
			<col width="5%">
			<col width="8%">
			<col width="27%">
			<col width="10%">
			<col width="10%">
			<col width="15%">
			<!-- <col width="10%"> -->
			<col width="8%">
		</colgroup>
		<thead>
			<tr>
				<td>序号 </td>
				<td>图片</td>
				<td style="text-align:left; padding-left:10px;">商品名</td>
				<td>数量</td>
				<td>积分单价</td>
				<td>小计</td>
				<td>操作</td>
			</tr>
		</thead>
		<tbody>			
			<!-- 一个商品 -->
			{foreach from=$cart_list name=loop item=item}
			<tr>
				<input type="hidden" class="shopping_cart_id" value="{$item.shopping_cart_id}">
				<td class="noBdR">{$smarty.foreach.loop.iteration}</td>
				<td>
					<a href="{$integral_item_detail_link}{$item.item_id}" title="{$item.item_name}" class="cit-item-img" target="_blank"><img src="{$item.small_pic}" alt="{$item.item_name}" width="65"></a>
				</td>
				<td class="left noBdL">
					<p class="cit-item-info">
						<a href="{$integral_item_detail_link}{$item.item_id}" title="{$item.item_name}" target="_blank" id="item_names">{$item.item_name}</a>
						<span style="color:#666666">
						</span><br>
						<span style="color:red"></span>
						
					</p>
				</td>
				<td>{$item.number}</td>				
				<td>
					<span class="market_pri">{$item.mall_price}<br></span>	
				</td>
				<td class="bold">
					<span class="list_price_total">{$item.total_price}</span>
				</td>
				<td>
					<a href="javascript:;" onClick="deleteCartItem({$item.shopping_cart_id},this)" class="btn">删除</a>
				</td>
			</tr>
			{/foreach}
			
		</tbody>
	</table>
	<!-- 购物车选择面板 -->
	<div class="cit-ctrlPanel">
		<div class="clearfix">
			<!-- <div class="cit-ctrl left">
				<span>
					<input type="checkbox" id="select_all" onclick="selectAll()" checked="checked">
					<a onclick="selectAll()">全选</a>
				</span>
				<a onclick="batchDeleteCartItem()">批量删除</a>
			</div> -->
			<div class="cit-ctrl-info fr">
				<span>剩余积分</span>：<b><label id="">{$integral_left}</label></b>
				<span>商品总计： {$total_num} 件</span>
				<span>商品总积分</span>：<b><label id="pay_amount_label">{$total_amount}</label></b>
			</div>
		</div>
		
	</div>
	
	<!-- 去支付 -->
	<div class="cart-actions clearfix">
      	<div class="form-button btn" style="float:left;background: #ddd;"><a href="{$integral_exchange_link}" style="color: #575555;">再逛逛</a></div>
		<button name="submit" value="submit" type="submit" class="form-button fr">去结算</button>
	</div>
    </form>
	<!-- e购物车内容 -->
    
  </div>
</section>
<!--e主内容-->
{/block}

{block name="js"}
<script src="__PUBLIC__/Js/front/cart.js?version={$version}"></script>
{/block}
